<html>
<body>

<form action="#" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />

</form>
<?php
if ($_POST["fname"] != "") echo $_POST["fname"];
//echo "hello";
?>
</body>
</html> 
